package com.itheima;

/**
 * java只能单继承  可以多层继承  不能多继承
 *
 */
public class Test {

    public static void main(String[] args) {
        Zi zi= new Zi();
        zi.sing();
        zi.jump();


    }



}
class Zi extends Fu{


}

class Fu extends Ye{
    public void  jump(){
        System.out.println("爸爸喜欢跳舞");
    }

}

class LaoWang{
    public void chuanmen(){

    }

}
class Ye{
  public void sing(){
      System.out.println("爷爷喜欢唱歌");
  }


}